package com.netty.rpc.encode;

import com.netty.rpc.encode.CodeC;
import com.netty.rpc.req.CalcRequest;
import com.netty.rpc.req.Request;
import com.netty.rpc.resp.Response;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;

public class Encode extends MessageToByteEncoder<Object> {


    @Override
    protected void encode(ChannelHandlerContext channelHandlerContext, Object object, ByteBuf byteBuf) throws Exception {
        CodeC.encode(object, byteBuf);
    }
}
